package com.karrysong.blog_springboot.service;

import com.karrysong.blog_springboot.entity.Category;
import com.karrysong.blog_springboot.vo.CategoryVo;
import com.karrysong.blog_springboot.vo.Result;
import com.karrysong.blog_springboot.vo.params.CategoryPage;
import com.karrysong.blog_springboot.vo.params.CategoryParam;

import java.util.List;

/**
 * @ClassName: CategoryService
 * @Author: KarrySong
 * @Date: 2022/8/5 9:18
 * @Description:
 */
public interface CategoryService {

    /*List<CategoryVo> copyList(List<Category> categoryList);

    CategoryVo copy(Category category);*/

    CategoryVo findCategoryById(Long id);

    Result findAll();

    Result getCategories(CategoryPage categoryPage);

    Result updateCategory(CategoryParam categoryParam);

    Result deleteCategory(Long id);

    Result deleteCategoryList(Long[] arr);

    Result addCategory(CategoryParam categoryParam);
}
